<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="/jsp/header.jsp" />
    <jsp:include page="/jsp/footer.jsp" />	
    <title>Grantha | Library ware</title>

	<link rel="icon" type="image/png" href="${WEB_BASE }images/favicon.png">
    <style type="text/css">

.bgCover { background:#000; position:absolute; left:0; top:0; display:none; overflow:hidden}
.overlayBox {
	/*border:5px solid #09F;*/
	position:absolute;
	display:none;
	/*
	width:1160px;
	height:580px;
    */
    margin:25px 0px 0px 0px;
	/*margin:0px auto;*/
	background-color:#fff;
	/*height:3000px;*/
	
}
.overlayContent {
	/* padding:50px; */
}
.closeLink {
	float:right;
	color:black;
	margin-right: -14px;
	margin-top: -14px;
}
a:hover { text-decoration:none; }

h2 {
	padding:5px;
	margin:0;
}
</style>

</head>
<body>
	<% boolean isGuest =  false;
		try{
			isGuest = request.getSession().getAttribute("CurrentUserRights").toString().trim().equals("");		
		}catch (NullPointerException e){
		    	
		}
		
	
			
		
	%>
    <div class="navibar">
    <ul>
	<li>File
        <ul>
            <%if(!isGuest){ %>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/File/barcode.jsp')">Print Barcode 39</li><img src="${WEB_BASE }images/barcode-32(2).png" alt="barcode" class="btnimg2"/>
			<%} %>
			<li onclick="javascript:redirect('${WEB_BASE }Logout')">Log Off</li><img src="${WEB_BASE }images/Key-32new.png" alt="key" class="btnimg2"/>
		</ul></li> 
	<% if(!isGuest){ %>	
	<li>Issue/Deposit
        <ul>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Issue_Deposit/BooksIssue.jsp')">Books</li><img src="${WEB_BASE }images/bookmarks_32.png" alt="books" class="btnimg2"/>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Reservation/ReservationList.jsp')">Books Reservation List</li><img src="${WEB_BASE }images/Calender-32.png" alt="bkreservation" class="btnimg2"/>
		</ul></li>
    <li>Make Data Entry
        <ul>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Books/AddBooks.jsp')">Book Entry</li> <img src="${WEB_BASE }images/bookmarks_32.png" alt="bkentry" class="btnimg2"/>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Patrons/PatronEntry.jsp')">Patron Entry </li> <img src="${WEB_BASE }images/Man_Black.png" alt="patronentry" class="btnimg2"/>
		</ul></li>
	<li>Find
        <ul>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Find/FindPatron.jsp?isPatron=false')">Books</li> <img src="${WEB_BASE }images/bookmarks_32.png" alt="books" class="btnimg2"/>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Find/FindPatron.jsp?isPatron=true')">Patron </li> <img src="${WEB_BASE }images/Man_Black.png" alt="patron" class="btnimg2"/>
		</ul></li>

		
				
    <li>Search
        <ul>        
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Search/BookSearch.jsp')">Books </li> <img src="${WEB_BASE }images/bookmarks_32.png" alt="bks" class="btnimg2"/>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Search/PatronSearch.jsp')">Patrons </li> <img src="${WEB_BASE }images/Man_Black.png" alt="ptrns" class="btnimg2"/>
		</ul></li>
    <li>View Reports
        <ul>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/ViewReports/IssuedBooks.jsp')">Issued Books </li> <img src="${WEB_BASE }images/bookmarks_32.png" alt="issuedbks" class="btnimg2"/>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/ViewReports/PatronHistory.jsp')">Patron History </li> <img src="${WEB_BASE }images/Man_Black.png" alt="ptrnhistry" class="btnimg2"/>
			<!-- 
			<li>Library Purchase Details </li><img src="${WEB_BASE }images/Purse.png" alt="LibraryPurchase" class="btnimg2"/>
			 -->
			<li onclick="javascript:openNewTab('${WEB_BASE}report/BookCountForAllSubjects');">Books Count For All Subjects </li><img src="${WEB_BASE }images/NeedleLeftYellow2.png" alt="bksCount" class="btnimg2"/>
            <li onclick="javascript:openNewTab('${WEB_BASE}report/CompleteBookList');">Complete Books List </li><img src="${WEB_BASE }images/bookmarks_32.png" alt="cmpltbks" class="btnimg2"/>
            <li onclick="javascript:openNewTab('${WEB_BASE}report/CompletePatronList');">Complete Patron List </li><img src="${WEB_BASE }images/Man_Black.png" alt="cmpltptrns" class="btnimg2"/>
            <li onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/ViewReports/BooksByAuthor.jsp?type=author');">Books By Author </li><img src="${WEB_BASE }images/Man_Red.png" alt="bksbyAuthor" class="btnimg2"/>
            <li onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/ViewReports/BooksByAuthor.jsp?type=subject');">Books By Subject </li><img src="${WEB_BASE }images/Flag1RightGreen2.png" alt="bksbySbjct" class="btnimg2"/>
            <!-- 
            <li onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/ViewReports/BooksByAuthor.jsp?type=status');">Books By Status </li><img src="${WEB_BASE }images/BulbGrey.png" alt="bksbyStatus" class="btnimg2"/>
             
            <li>Income From Fine </li><img src="${WEB_BASE }images/Money.png" alt="income" class="btnimg2"/>
            <li>Overdue Letters </li><img src="${WEB_BASE }images/Letter-32x32.png" alt="letters" class="btnimg2"/>
            <li>Reservation Letters </li><img src="${WEB_BASE }images/Letter_32.png" alt="letters" class="btnimg2"/>
            -->
		</ul></li>
    <li>Settings
        <ul>
			<li onclick="javascript:doOverlayOpen('${WEB_BASE }jsp/Users/MAddUser.jsp')">User Settings </li> <img src="${WEB_BASE }images/user-32.png" alt="user" class="btnimg2"/>
			<!-- 
			<li>Home Page </li><img src="${WEB_BASE }images/Web-32.png" alt="home" class="btnimg2"/>
			 -->
			<li>Program Settings </li><img src="${WEB_BASE }images/Settings_32.png" alt="prgrmSttngs" class="btnimg2"/>
		</ul></li>
	<%} %>	
    <li>Help
        <ul>
			<li onclick="javascript:openNewTab('${WEB_BASE}help.pdf');">Help </li> <img src="${WEB_BASE }images/Help_32.png" alt="help" class="btnimg2"/>
			<!-- 
			<li>About </li><img src="${WEB_BASE }images/Gnome-Help-About-32.png" alt="about" class="btnimg2"/>
			-->
		</ul></li>
	</ul>
    </div>
	<br/>
	<%if(!isGuest){ %>
        <div class="leftColumnButtons"><input onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/Issue_Deposit/BooksIssue.jsp');" class="btnimgtxt" type="button" name="issue" id="issueid"  value="Issue Deposit Books"/><img src="${WEB_BASE }images/Money_Calculator_64.png" alt="issue" class="btnimg"/></div>
        <div class="leftColumnButtons"><input onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/Books/AddBooks.jsp');" class="btnimgtxt" type="button" name="bookentry" id="bookentryid" value="Book Entry"/><img src="${WEB_BASE }images/bookmarks_64.png" alt="bentry" class="btnimg"/></div>
        <div class="leftColumnButtons"><input onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/Patrons/PatronEntry.jsp');" class="btnimgtxt" type="button" name="patron" id="patronid" value="Patron Entry"/><img src="${WEB_BASE }images/Man_Black_64.png" alt="pentry" class="btnimg"/></div>
    
    <% } %>
    
        <div class="leftColumnButtons"><input onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/Search/BookSearch.jsp');" class="btnimgtxt" type="button" name="booksearch" id="booksearchid" value="Book Search"/><img src="${WEB_BASE }images/Block-2-64.png" alt="bsearch" class="btnimg"/></div>
    <% if(!isGuest) { %>
        <div class="leftColumnButtons"><input onclick="javascript:doOverlayOpen('${WEB_BASE}jsp/Settings/settings2.jsp');" class="btnimgtxt" type="button" name="seetings" id="seetingsid" value="Settings"/><img src="${WEB_BASE }images/Settings_64.png" alt="settings" class="btnimg"/></div>
    <% } %>    
        <div class="leftColumnButtons"><input onclick="javascript:redirect('${WEB_BASE }Logout')" class="btnimgtxt" type="button" name="logoff" id="logoffid" value="Log off"/><img src="${WEB_BASE }images/Lock_64x64.png" alt="logoff" class="btnimg"/></div>
    
<div class="bgCover">&nbsp;</div>
<div class="overlayBox">
	
	<div class="overlayContent">
        <a href="#" class="closeLink"><img src="${WEB_BASE }images/close.png"/></a>
		
    </div>
	<!-- add dynamic html content here-->
	<div id="dynHtml"></div>
</div>
<!--a href="#" class="launchLink">Launch Window</a>

<!-- normal content displayed when overlay is not open... -->




</body>
</html>